@import url(variables.css);
body {
    min-height: 100vh;
    background: var(--content-bg);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
 }
 #particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(45deg, #141E30, #243B55); /* Gradiente más elegante */
}
 .login-container {
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.btn-login {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    width: 100%;
    border-radius: 10px;
    margin-top: 1rem;
}

.btn-login:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.alert {
    border-radius: 10px;
    margin-bottom: 1rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    color: #6c757d;
}
 /* Sidebar */
 .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    border-bottom-right-radius: 20px;
 }
 
 .sidebar.collapsed {
    width: 70px;
 }
 
 .sidebar.collapsed .nav-link span {
    display: none;
 }
 
 .sidebar.collapsed .sidebar-logo img {
    display: none;
 }
 
 .sidebar-header {
    height: var(--topbar-height);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
 }
 
 .sidebar-logo img {
    height: 40px;
 }
 
 .nav-item {
    margin: 0.5rem 0;
 }
 
 .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 0.25rem 0.5rem;
    text-decoration: none;
 }
 
 .nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.1);
 }
 
 .nav-link.active {
    color: white;
    background: var(--primary-color);
 }
 
 .nav-link i {
    font-size: 1.25rem;
    min-width: 24px;
    text-align: center;
 }
 
 /* Topbar */
 .topbar {
    height: var(--topbar-height);
    background: var(--sidebar-bg);
    border-bottom: 1px solid #dee2e6;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    z-index: 999;
    transition: all 0.3s ease;
 }
 
 .topbar.expanded {
    left: 70px;
 }
 
 /* User Menu */
 .user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
 }
 
 .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 25px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
 }
 
 .user-info:hover {
    background: #e9ecef;
 }
 
 .user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
 }
 
 /* Main Content */
 .main-content {
    margin-left: var(--sidebar-width);
    padding: calc(var(--topbar-height) + 1rem) 1.5rem 1.5rem;
    transition: all 0.3s ease;
 }
 
 .main-content.expanded {
    margin-left: 70px;
 }
 
 /* Cards */
 .dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
 }
 
 .dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
 }
 
 /* Dropdown Menus */
 .dropdown-menu {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
 }
 
 .dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
 }
 
 .dropdown-item:hover {
    background-color: #f8f9fa;
 }
 
 .dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white !important;
 }
 
 /* Responsive */
 @media (max-width: 768px) {
    #sidebarToggle{
        left:50px;
        position: relative;
    }
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .topbar {
        left: 0;
        padding: 0 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: calc(var(--topbar-height) + 1rem) 1rem 1rem;
    }

    .dashboard-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* Ajustes específicos para las cards de estadísticas */
    .stats-card {
        min-height: auto;
        margin-bottom: 1rem;
    }

    /* Ajuste para el select en móvil */
    .time-select {
        width: 120px;
        font-size: 14px;
    }

    /* Ajustes para el contenedor principal */
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Ajuste para las filas */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col, [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Ajuste para gráficas */
    .chart-container {
        height: 300px !important;
    }
}
 
 /* Scrollbar personalizado */
 ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
 }
 
 ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
 }
 
 ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
 }
 
 ::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
 }
 @media (max-width: 576px) {
    .main-content {
        padding: calc(var(--topbar-height) + 0.5rem) 0.5rem 0.5rem;
    }

    .dashboard-card {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .stats-number {
        font-size: 1.5rem;
    }

    .stats-label {
        font-size: 0.875rem;
    }
}